<?php

/**
 * Description of UnderscoreException
 *
 * @author JeyDotC
 */
class UnderscoreException extends Exception {
    private $app;
    private $module;
    private $task;
    
    public function __construct($app, $module, $task, Exception $previous) {
        parent::__construct("An exception ocurred at $app::$module::$task(). View the inner exception for more information.", 
                0, $previous);
        
        $this->setApp($app);
        $this->setModule($module);
        $this->setTask($task);
    }
    
    public function getApp() {
        return $this->app;
    }

    public function setApp($app) {
        $this->app = $app;
    }

    public function getModule() {
        return $this->module;
    }

    public function setModule($module) {
        $this->module = $module;
    }

    public function getTask() {
        return $this->task;
    }

    public function setTask($task) {
        $this->task = $task;
    }
}

?>
